_CENTRE_TEXT2[42,"THIS PROGRAM IS PUBLIC DOMAIN!"]
_CENTRE_TEXT2[52,"YOU CAN COPY AND SPREAD IT AS MUCH"]
_CENTRE_TEXT2[62,"AS YOU LIKE."]
_CENTRE_TEXT2[74,"CLICK LEFT MOUSE BUTTON"]
'
Repeat : Until Mouse Click
'
_3D_DISPLAY[30,15,578,65,0,3]
'
_CENTRE_TEXT2[24,"NOW LOAD A IFF/.ABK PICTURE"]
_CENTRE_TEXT2[32,"---------------------------"]
_CENTRE_TEXT2[42,"THE PICTURE CAN BE ANY SIZE,AS LONG AS IT IS"]
_CENTRE_TEXT2[52,"NO BIGGER THAN THE VIEWABLE SCREEN AREA!."]
_CENTRE_TEXT2[62,"HIRES OR LOWRES AND ANY NUMBER OF COLOURS."]
_CENTRE_TEXT2[74,"CLICK LEFT MOUSE BUTTON"]
'
Repeat : Until Mouse Click
'
Cls 0
'
End Proc
Procedure _LOAD_IFF
'
_3D_BUTTON[6,10,15,130,14,0,"LOAD IFF",4,0]
'
F$=Fsel$("*.IFF","","LOAD IFF PICTURE","")
'
If F$=""
_3D_BUTTON[6,10,15,130,14,1,"LOAD IFF",3,0]
Pop Proc
End If
'
If Exist(F$)
'
Load Iff F$,0
_BRIGHTEST[0]
_DARKEST[0]
Screen To Front 4
'
End If
'
Screen 4
_3D_BUTTON[6,10,15,130,14,1,"LOAD IFF",3,0]
'
End Proc
Procedure _LOAD_ABK
'
_3D_BUTTON[7,150,15,130,14,0,"LOAD ABK",4,0]
'
F$=Fsel$("*.ABK","","LOAD ABK PICTURE","")
'
If F$=""
_3D_BUTTON[7,150,15,130,14,1,"LOAD ABK",3,0]
Pop Proc
End If
'
If Exist(F$)
'
Load F$,9
Unpack 9 To 0
_BRIGHTEST[0]
_DARKEST[0]
Erase 9
Screen To Front 4
'
End If
'
Screen 4
_3D_BUTTON[7,150,15,130,14,1,"LOAD ABK",3,0]
'
End Proc
Procedure _SAVE_ZNK
'
_3D_BUTTON[9,10,34,270,14,0,"SAVE ZBK",4,0]
'
F$=Fsel$("*.ZNK","","SAVE .ZNK BANK","")
'
If F$=""
_3D_BUTTON[9,10,34,270,14,1,"SAVE ZBK",3,0]
Pop Proc
End If
'
L=Length(10)-8
Bank Shrink 10 To L
Poke$ Start(10)-8,"Zones"
F$=Upper$(F$)
Save F$,10
'
Screen 4
_3D_BUTTON[9,10,34,270,14,1,"SAVE ZBK",3,0]
'
End Proc
Procedure _ADD_TO_BANK
'
_3D_BUTTON[5,290,34,340,33,0,"ADD",4,0]
'
L=Length(10)
'
Reserve As Work 11,L+8
'
Copy Start(10),Start(10)+Length(10) To Start(11)
'
Reserve As Data 10,Length(11)
Copy Start(11),Start(11)+Length(11) To Start(10)
Poke$ Start(10)-8,"Zones"
'
Erase 11
'
_GET
'
_3D_INFO[290,15,340,14,"ZONE "+Mid$(Str$(PLACE),2)+" "+Mid$(Str$(Deek(Start(10)+POS)),2)+","+Mid$(Str$(Deek(Start(10)+POS+2)),2)+" TO "+Mid$(Str$(Deek(Start(10)+POS+4)),2)+","+Mid$(Str$(Deek(Start(10)+POS+6)),2),4,1]
'
Inc PLACE
Add POS,8
'
_IN
'
Wait 20
'
_3D_BUTTON[5,290,34,340,33,1,"ADD",3,0]
'
End Proc
Procedure _DUMMY
End Proc
Procedure _GET
'
_OUT
'
Screen 0
'
Change Mouse 2
'
Repeat
X1=X Screen(0,X Mouse)
Y1=Y Screen(0,Y Mouse)
IN_SCREEN=Scin(X Mouse,Y Mouse)
Until Mouse Click=1 and IN_SCREEN=0
'
Wait 10
Gr Writing 3
'
Repeat
X2=X Screen(0,X Mouse)
Y2=Y Screen(0,Y Mouse)
IN_SCREEN=Scin(X Mouse,Y Mouse)
'
If X2>X1 and Y2>Y1
Ink BRIGHTEST,0
Box X1,Y1 To X2,Y2
Box X1,Y1 To X2,Y2
End If
'
Until Mouse Click=1 and X2>X1+2 and Y2>Y1+2 and IN_SCREEN=0